#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <pthread.h>
#include <sched.h>
#include "worker.h"

static int thread_context = 10;

void thread_func(void *arg)
{
    printf("thread_func start\n");
    printf("thread_func %p\n", arg);
    printf("thread_func %d\n", *((int *)arg));
    printf("thread_func end\n");
    return;
}

void run_test(void)
{
    worker_t *worker = NULL;
    worker = worker_create(&thread_context, thread_func);
    if (worker == NULL) {
        printf("create worker error\n");
    }
}

int main(void)
{
    run_test();
    sleep(2);
    return 0;
}
